import requests

url = 'https://apic.douyucdn.cn/upload/avatar_v3/202008/bd7e7d1e188a4c1e8625c2ad4fd232b1_big.jpg'
R = requests.get(url)
R.encoding = 'utf-8'
g = open('./tp.jpg', 'wb')
g.write(R.content)